package com.efesco.crm.crm;

import com.bstek.dorado.data.*;
import com.bstek.dorado.data.db.SqlDataset;
import com.bstek.dorado.common.*;
import com.efesco.common.CommUtil;

/**
 * crm_dataset_card_habitationListener
 */
public class crm_dataset_card_habitationListener extends AbstractDatasetListener {
  public boolean beforeLoadData(Dataset dataset)
     throws Exception {
	  SqlDataset ds = (SqlDataset) dataset;
		String sql = ds.getSql();
		sql += CommUtil.setConditionSQL(ds);
		ds.setSql(sql+" order by ech.EM_CARD_HABITATION_ID desc");
    return true;
  }

}
